package com.bite.common.message.config;


import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.time.format.DateTimeFormatter;

@Configuration
public class MessageConfig {

    @Value("${sms.spug.timePattern:yyyy-MM-dd HH:mm:ss}")
    private String timePattern; // "yyyy-MM-dd%20HH:mm:ss"


    @Bean("dateTimeFormatter")
    public DateTimeFormatter dateTimeFormatter(){
        return DateTimeFormatter.ofPattern(timePattern);
    }
}
